import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import UploadImg from '@/components/sub/UploadImg'
import Home from "@/components/Home"
import Right from "@/components/Right"
import AddItem from "@/components/sub/AddItem"
import SelectProp from "../components/sub/SelectProp"
import Login from "../components/sub/Login"

import StudyPartList from "../components/word/StudyPartList"
import StudyPart from "../components/word/StudyPart"
import StudyWord from "../components/word/StudyWord"

Vue.use(Router)

export default new Router({
  routes: [
    { path: '/hello', name: 'HelloWorld', component: HelloWorld},
    { path: '/login', name: 'Login', component: Login},
    { path: '/upload', name: 'UploadImg', component: UploadImg},
    { path: '/right/:index', name: 'Right', component: Right},
    { path: '/sub/addItem', name: 'AddItem', component: AddItem},
    { path: '/sub/selectProp', name: 'SelectProp', component: SelectProp},

    { path:'/', name:"StudyPartList", component:StudyPartList},
    { path:'/word/part/:currPage', name:"StudyPart", component:StudyPart},
    { path:'/word/word', name:"StudyWord", component:StudyWord},
  ]
})
